<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>world</title>
    <style>
        table {
            border-collapse: collapse;
        }

        table,
        td,
        th {
            border: 1px solid black;
        }

        td {
            padding: 8px 10px;
            text-align: center;
            font-size: 12px;
            white-space: nowrap;

        }
    </style>
</head>
<body>

<table border="1">

    <tr>
       <#list listdata as p>
           <th> ${p.name}</th>
       </#list>
    </tr>



<#list listdata1 as m>
<tr>
    <#list m?keys as k>
        <td> ${m[k]}</td>
    </#list>
</tr>
</#list>

</table>


</body>
</html>